import axios from '../utils/utils'

// 获取商品列表
export let list = params => axios.get("/goods/list", { params })

export let addgoos = params => axios.post("/goods/add", params)

// 添加商品
export let addcate = params => axios.post("/goods/addcate", params)
// 获取分类
export let catelist = params => axios.get("/goods/catelist", { params })
// 删除分类
export let delcate = params => axios.get("/goods/delcate", { params })
// 修改分类
export let editcate = params => axios.post("/goods/editcate", params)

export let categorie = params => axios.post("/goods/categorie", params)
// 查询所有分类名称
export let categories = params => axios.get("/goods/categories", { params })
// 获取商品列表
export let lista = params => axios.get("/goods/list", { params })
// 删除商品
export let del = params => axios.get("/goods/del", { params })
// 修改商品
export let edit = params => axios.post("/goods/edit", params)

// 店铺管理获取店铺详情
export let info = params => axios.get("/shop/info", { params })

// 店铺头像上传
export let upload = params => axios.post("/shop/upload", params)

// 店铺管理
export let shopedit = params => axios.post("/shop/edit", params)







